<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    
    <div id="root">
        <H1>欢迎，{{name}}</H1>
        <button v-on:click="showinfo1">点我提示信息1</button>
        <button @click="showinfo2(66,$event)">点我提示信息2</button>

    </div>
</body>
<script>
    new Vue({
        el:"#root",
        data:{
            name:"at"
        },
        methods:{
            showinfo1(event){
                // alert("hello");
                console.log(event.target);
                // alert(event.target.innerHTML);
            },
            showinfo2(a,b){
                console.log(a,b);
                console.log(b.target);
                // console.log(b.target.innerHTML);
            }
        }
    })
</script>
</html>